<html>
<head>
    <meta charset="utf-8">
    <script type="text/javascript">

        var see = new EventSource("/see");

        see.onmessage = function(data){
            console.info(data);
            document.getElementById("msg").innerText = data.data;
        }


    </script>
</head>
<body>

<span id="msg">xxx</span>

</body>

</html>
